<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统管理</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-form" lay-filter="LAY-form" id="LAY-form" style="padding: 20px 30px 0 0;">
	<input type="hidden" name="id" value="$!{id}"/>
	<input type="hidden" name="parentId" value="$!{parent.id}"/>
	<input type="hidden" name="countryId" value="$!{countryId}"/>
	#if($parentId)
	<div class="layui-form-item">
		<label class="layui-form-label">上级地区</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input" readonly value="$!{parent.name}">
		</div>
	</div>
	#end
	<div class="layui-form-item">
		<label class="layui-form-label">地区ID</label>
		<div class="layui-input-block">
			<input type="number" name="id" class="layui-input" lay-verify="required" autocomplete="off" placeholder="$!{i18n.get('pleaseEn')}$!{i18n.get('areaNum')}" value="$!{id}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">地区类型</label>
		<div class="layui-input-block">
			<select name="type" lay-verify="required" >
			#foreach($item in $typeList)
				<option value="$!{item.index()}" $!{utils.eq($item.index(),$type,'selected')}>$!{item.note()}</option>
			#end
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">地区名称</label>
		<div class="layui-input-block">
			<input type="text" name="name" class="layui-input" lay-verify="required" autocomplete="off" placeholder="请填写" value="$!{name}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">地区全称</label>
		<div class="layui-input-block">
			<input type="text" name="fullName" class="layui-input" lay-verify="required" autocomplete="off" placeholder="请填写" value="$!{fullName}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">地区拼音</label>
		<div class="layui-input-block">
			<input type="text" name="pinyin" class="layui-input" autocomplete="off" placeholder="请填写" value="$!{pinyin}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">地区别称</label>
		<div class="layui-input-block">
			<input type="text" name="code" class="layui-input" autocomplete="off" placeholder="请填写" value="$!{code}">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">显示优先级</label>
		<div class="layui-input-block">
			<input type="text" name="priority" class="layui-input" placeholder="请填写" value="$!{priority}">
		</div>
	</div>
  	<div class="layui-form-item layui-hide">
    	<input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit">
    	<input type="button" lay-submit lay-filter="LAY-form-update" id="LAY-form-update">
  	</div>
</div>
#parse('/footFiles.html')
<script type="text/javascript">
  layui.config({
    base: '$!{webRoot}/assets/layuiadmin/'
  }).extend({
    index: 'lib/index'
  }).use(['index', 'form'], function(){
    var $ = layui.$,form = layui.form;
  });
</script>
</body>
</html>